package com.zzq.pojo;

import java.util.Arrays;

/**
 * @program: SpringBootdemo
 * @description: book
 * @author: zzq
 * @create: 2025-02-27 14:28
 **/
public class Book {
    private int age;
    private String name;
    private String[] subjects;

    @Override
    public String toString() {
        return "Book{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", subjects=" + Arrays.toString(subjects) +
                '}';
    }

    public void setAge(int age) {
    this.age = age;
}

public String getName() {
    return name;
}

public void setName(String name) {
    this.name = name;
}

public String[] getSubjects() {
    return subjects;
}

public void setSubjects(String[] subjects) {
    this.subjects = subjects;
}
}
